'use strict';

const Service = require('egg').Service;

class userService extends Service {
    async login(name,pwd) {
        const res = await this.app.mysql.query(`select * from sun where name='${name}' AND pwd='${pwd}' `);
        return  res ;
    }
}

module.exports = userService;
